function updateMainAxes(main, plotToCopy, XLim, YLim, XScale)

mainAxes = main.handles.axes_main;

cla(mainAxes);


% Aca puede q no vuelva a dibujar los nuevos axes
if main.currentPlotInMain == 9
    plotTemplate(main, main.handles.axes_main);
end

set(mainAxes, 'XLim', XLim);
set(mainAxes, 'YLim', YLim);
set(mainAxes, 'XScale', XScale);

if main.filterAmount > 0
   
    for index = 1: main.filterAmount
        if plotToCopy == 1
        copyobj(main.plotTracking{index, plotToCopy}, mainAxes);
        copyobj(main.plotTracking{index, plotToCopy+1}, mainAxes);
        else
        copyobj(main.plotTracking{index, plotToCopy}, mainAxes);
        end
            
        
    end

   
end

end
